<!--<script charset="utf-8" src="http://map.qq.com/api/js?v=2.exp&key=<{$data.map_key}>"></script>
<script type="text/javascript">
       $(function(){
		
			var map = new qq.maps.Map(document.getElementById("container"), {
            // 地图的中心地理坐标。
				<{if $data.gps_x && $data.gps_y}>
            	center: new qq.maps.LatLng(<{$data.gps_x}>,<{$data.gps_y}>)
				<{else}>
				center: new qq.maps.LatLng(39.916527,116.397128)
				
				<{/if}>
				//zoom:<{$data.gps_z}>
        	});
			map.zoomTo(15);
			
		   	qq.maps.event.addListener(map, "click", function (e) {
				$('#gps_x').val(e.latLng.getLat().toFixed(6));
				$('#gps_y').val(e.latLng.getLng().toFixed(6));
				$('#gps_z').val(map.getZoom());
				marker.setMap(null);
				center = new qq.maps.LatLng($('#gps_x').val(), $('#gps_y').val());
				marker = new qq.maps.Marker({
                //设置Marker的位置坐标
					position: center,
					//设置显示Marker的地图
					map: map
            	});
			})
			
			<{if $data.gps_x && $data.gps_y}>
				var center = new qq.maps.LatLng(<{$data.gps_x}>, <{$data.gps_y}>);
			<{else}>
				var center = new qq.maps.LatLng(39.916527,116.397128);
			
			<{/if}>
			var marker = new qq.maps.Marker({
                //设置Marker的位置坐标
                position: center,
                //设置显示Marker的地图
                map: map
            });
			
		})
</script>-->
<style type="text/css">
#container {
	width: 100%;
	float:left; margin:20px 0 0 0;
}
</style>
<div id="content" style="background-color:#ffffff">
  <div id="content-header">
    <div id="breadcrumb"> <a href="index.php?m=admin&t=main" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> 后台首页</a> <a href="#">系统设定</a> <a href="#" class="current">系统环境变量</a> </div>
  </div>
  <div class="container-fluid" style=' margin-top:20px'>
   
     <fieldset class="layui-elem-field">
      <legend>系统环境变量设置</legend>
      <div class="layui-field-box">
    <form class="layui-form layui-form-pane" action="index.php?m=admin&t=saveConfig" method="post">
     <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
      <legend>基本配置</legend>
    </fieldset>
      <div class="layui-form-item">
        <label class="layui-form-label">网站标题</label>
        <div class="layui-input-block">
          <input type="text" name="title" value="<{$data.title}>"  lay-verify="required" autocomplete="off" placeholder="请输入网站标题" class="layui-input">
        </div>
      </div>
      
       <div class="layui-form-item">
        <label class="layui-form-label">网站网址</label>
        <div class="layui-input-block">
          <input type="text" name="url" value="<{$data.url}>"  lay-verify="required" autocomplete="off" placeholder="请输入网站网址" class="layui-input">
        </div>
      </div>
      
       <fieldset class="layui-elem-field layui-field-title" >
          <legend>SEO</legend>
       </fieldset>
      <div class="layui-form-item">
        <label class="layui-form-label">关键字</label>
        <div class="layui-input-block">
          <input type="text" name="keywords" value="<{$data.keywords}>" lay-verify="required" autocomplete="off" placeholder="请输入关键字" class="layui-input">
        </div>
      </div>
      
       <div class="layui-form-item">
        <label class="layui-form-label">描述</label>
        <div class="layui-input-block">
          <input type="text" name="description" value="<{$data.description}>" lay-verify="required" autocomplete="off" placeholder="请输入描述" class="layui-input">
        </div>
      </div>
      <fieldset class="layui-elem-field layui-field-title" >
          <legend>版权信息</legend>
       </fieldset>
      <{$data.copyright}>
      <br><br>
      <div class="layui-form-item">
        <div class="layui-input-block">
          <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
          <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
      </div>
    </form>
      </div>
</fieldset>
  </div>
</div>
<script>
layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form()
  ,layer = layui.layer
  //,layedit = layui.layedit
  //,laydate = layui.laydate;
  
  //创建一个编辑器
  //var editIndex = layedit.build('LAY_demo_editor');
 
  //自定义验证规则
 /* form.verify({
    title: function(value){
      if(value.length < 5){
        return '标题至少得5个字符啊';
      }
    }
    ,pass: [/(.+){6,12}$/, '密码必须6到12位']
    ,content: function(value){
      layedit.sync(editIndex);
    }
  });
  
  
  
  //监听提交
  form.on('submit(demo1)', function(data){
    layer.alert(JSON.stringify(data.field), {
      title: '最终的提交信息'
    })
    return false;
  });*/
  
  
});
</script>